package com.aiiju.core.util;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

public class HtmlToString {

	public static String htmlToString(String html) {
		Document doc = Jsoup.parse(html);

		StringBuilder sb = new StringBuilder();
		String currentKeyWord = null;
		Elements elems = doc.select("table td");
		for (Element elem : elems) {
			String text = elem.text();
			sb.append(text).append("\r\n");
//			System.out.println(text);
		}
		return sb.toString();
	}

}
